package com.voxel.sense.infomsg.data;

import com.contrarywind.interfaces.IPickerViewData;

import java.util.List;

/**
 * @author ChenYiYao
 * @date 2018/5/14
 * des :
 */
public class RegionBean implements IPickerViewData {


    /**
     * id : 110000
     * ip : 1
     * name : 北京市
     * child : [{"id":"110000110100","ip":"35","name":"北京市","child":[{"id":"110000110100110101","ip":"377","name":"东城区"},{"id":"110000110100110102","ip":"378","name":"西城区"},{"id":"110000110100110103","ip":"379","name":"崇文区"},{"id":"110000110100110104","ip":"380","name":"宣武区"},{"id":"110000110100110105","ip":"381","name":"朝阳区"},{"id":"110000110100110106","ip":"382","name":"丰台区"},{"id":"110000110100110107","ip":"383","name":"石景山区"},{"id":"110000110100110108","ip":"384","name":"海淀区"},{"id":"110000110100110109","ip":"385","name":"门头沟区"},{"id":"110000110100110111","ip":"386","name":"房山区"},{"id":"110000110100110112","ip":"387","name":"通州区"},{"id":"110000110100110113","ip":"388","name":"顺义区"},{"id":"110000110100110114","ip":"389","name":"昌平区"},{"id":"110000110100110115","ip":"390","name":"大兴区"},{"id":"110000110100110116","ip":"391","name":"怀柔区"},{"id":"110000110100110117","ip":"392","name":"平谷区"},{"id":"110000110100110228","ip":"393","name":"密云县"},{"id":"110000110100110229","ip":"394","name":"延庆县"}]}]
     */

    private String id;
    private String ip;
    private String name;
    private List<ChildBeanX> child;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<ChildBeanX> getChild() {
        return child;
    }

    public void setChild(List<ChildBeanX> child) {
        this.child = child;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }

    public static class ChildBeanX implements IPickerViewData {
        /**
         * id : 110000110100
         * ip : 35
         * name : 北京市
         * child : [{"id":"110000110100110101","ip":"377","name":"东城区"},{"id":"110000110100110102","ip":"378","name":"西城区"},{"id":"110000110100110103","ip":"379","name":"崇文区"},{"id":"110000110100110104","ip":"380","name":"宣武区"},{"id":"110000110100110105","ip":"381","name":"朝阳区"},{"id":"110000110100110106","ip":"382","name":"丰台区"},{"id":"110000110100110107","ip":"383","name":"石景山区"},{"id":"110000110100110108","ip":"384","name":"海淀区"},{"id":"110000110100110109","ip":"385","name":"门头沟区"},{"id":"110000110100110111","ip":"386","name":"房山区"},{"id":"110000110100110112","ip":"387","name":"通州区"},{"id":"110000110100110113","ip":"388","name":"顺义区"},{"id":"110000110100110114","ip":"389","name":"昌平区"},{"id":"110000110100110115","ip":"390","name":"大兴区"},{"id":"110000110100110116","ip":"391","name":"怀柔区"},{"id":"110000110100110117","ip":"392","name":"平谷区"},{"id":"110000110100110228","ip":"393","name":"密云县"},{"id":"110000110100110229","ip":"394","name":"延庆县"}]
         */

        private String id;
        private String ip;
        private String name;
        private List<ChildBean> child;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getIp() {
            return ip;
        }

        public void setIp(String ip) {
            this.ip = ip;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<ChildBean> getChild() {
            return child;
        }

        public void setChild(List<ChildBean> child) {
            this.child = child;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }

        public static class ChildBean implements IPickerViewData{
            /**
             * id : 110000110100110101
             * ip : 377
             * name : 东城区
             */

            private String id;
            private String ip;
            private String name;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getIp() {
                return ip;
            }

            public void setIp(String ip) {
                this.ip = ip;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            @Override
            public String getPickerViewText() {
                return name;
            }
        }
    }
}
